home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 351-375 / disk_359 / dice / dice.lzh / include / fcntl.h < prev    next >
C/C++ Source or Header  |  1990-04-13  |  1KB  |  58 lines

  1.  
  2. /*
  3.  *  FCNTL.H
  4.  */
  5.  
  6. #ifndef _FCNTL_H
  7. #define _FCNTL_H
  8.  
  9. #define O_RDONLY    0
  10. #define O_WRONLY    1
  11. #define O_RDWR        2
  12. #define O_NDELAY    4
  13. #define O_APPEND    8
  14. #define O_CREAT     0x0100
  15. #define O_TRUNC     0x0200
  16. #define O_EXCL        0x0400
  17. #define O_BINARY    0x0800
  18.  
  19. /*
  20.  *  Internal, never specify
  21.  */
  22.  
  23. #define O_INTERNAL  0xF000
  24. #define O_ISOPEN    0x1000
  25. #define O_NOCLOSE   0x2000  /*    not a closable file */
  26. #define O_CEXEC     0x4000  /*    close on exec        */
  27.  
  28. /*
  29.  *  UNIX support
  30.  */
  31.  
  32. #define F_DUPFD     1
  33. #define F_GETFD     2
  34. #define F_SETFD     3
  35. #define F_GETFL     4
  36. #define F_SETFL     5
  37.  
  38.  
  39. extern unsigned int write(int, const void *, unsigned int);
  40. extern unsigned int read(int, void *, unsigned int);
  41. extern int close(int);
  42. extern int open(const char *, int, ...);
  43. extern int creat(const char *, ...);
  44. extern long lseek(int, long, int);
  45.  
  46. #ifdef _STDIO_H
  47. extern _IOFDS *__getfh(short);      /*  for system use only */
  48. extern _IOFDS *_MakeFD(int *);      /*  for system use only */
  49. #endif
  50.  
  51. /*
  52.  *  UNIX
  53.  */
  54.  
  55. extern int fcntl(int, int, int);
  56.  
  57. #endif
  58.